improve logging.