patch for emulator build