refactor traceback
make prettyerrors optional