deleted redundant affiliates code, moved it to an app