added traceback support to arithmetic code