cleaned logging.
more logging