fixed up some of the logging to make it more readable