various emulation related scripts