added traceback code for future ref