added loggings for exceptions and a few other stuff