add pgm library