some work done adapting the emu to ios