catches uncaughtExceptions now