adding switch command