added method to find the index of a model in the emulator