refactor: cleanup debug code