add init to FactoryController