add namespaceBase feature to avoid pollut the global varibals