if you need to unlock, you will have to build a custom 3.1.3 firmware using pwnagetool (mac) in order to preserve your baseband. once this is done you can upgrade to that custom firmware and you will be jailbroken. after that just install ultrasn0w and you will be unlocked.