made some logging changes