emulation utils