ref #9771 add handling for externally managed