cpp: replace path spec key with a map of maps
patches: delete path spec work