fixed enum strings for referrals. bunch other stuff...