clean up for sane logging.