sorting RPC stuff