adding metrics and logging.