improve some logging.