adds factories with assocations