getting the factory working