split switch into classes