updated logging.