add namespace and modify plugin manager