added reset and logger for exceptions