severe initialization bugfix that affects the relcount module and a few logging fixes