add wait_for_emulator_script