adjust to backend referral code changes