added function + command to select a specific switch in the chain