dupe of subman/utils