add query option to rpc.request
convert --reverse option to boolean