add categories and associations