adds associations to models