tweaked the logging