emulation library