inconsitency logging refactor