update figure, add emulation capability
update emulate function, export it