call the right rpc