expose debug in browser
make disable a trigger instead of a switch