fixed to show stacktrace properly