added basic emulation to emulator