added pretty print of stacktraces