new version of oFactory.