switch to using the new model.getNamespaces definition