setup emulator