fix convert()

need to call init() and check for exceptions