for the AGENT watch, emulator code