improved the logging for everything