added some more logging.