wait for emulator.