tweaks to logging.