init emulator KS