set node attribute at default precedence, ensure unique resource name