cleaning up logging.