added invocation of script to wait for the emulator