feat: make debug global
refactor: debug