switch setup - working? code (no compiler)