switch emulator explained