initialization of emulator