move wait_for_emulator