fixed bad logging refactor