patching up some more logging stuff