move logging much earlier to ensure that we do handle simplestreams log messages