add rpc failover