performance logging working (after refactoring)