emulator: port to new generator