cpp: try to add namespace definitions to model