working on emulator.