refactoring: debug info