affiliates controller