output proper stacktrace