adding more logging.