the rpc version of libvmi function