fixed error processing and formatting in trans