added NamedSwitches class