add timeout waiting for emulator