how to handle multiple switches