modification for cptutils 1.51