fixed up some logging