refactor: better debug output