cleaned up logging.