general-purpose utils in cotrix-commons, reused now throughout