Only throw exception on root node
Rename .d to .prm