clean up logging a little