add reference to factory