add rpc for referral