get the logging right