updated the logging