add traceback to improve exception handling