update cpgf - fix #23