simplifying the logging init, moving it to preamble