added emulator script