auto resolve non leaf nodes