some better logging.