improvements to the logging functionality