put referrals in a different place, added more automation, and added more testing