fixed up logging to work the way I wanted it to