add wait for emulator