cat /switch implemented