smarter traceback