changed affiliate to referral where requested, fixes dioscouri/amritasingh-f3#274