update doc generation to support optional namespaces in wd 1.2.2