refactored CrashReporter