added more logging.