make utility function a class extension so that calling syntax is more familiar