changed some logging.