fix up some logging