begin and rescues along with fix for blank names in affiliates_controller