corrections to stacktrace generation