add wait for emulator script