add async logging.