add switch definitions