logger refactors