clean up some logging