make switch able to handle multiple outs