basic switch event feature