support rest options same as xdr