checking about emulator moved to GlobalVar class