add wait_for_emulator and script