mapping that actually works for all-switch