rename function and add traceback in case of exception