added emulator setup