fix up logging.