minor tweaks to logging.