better way of handling the traceback usage