added namespaceAware flag to factories