wait for emulator