new switch mixin