updated pg.sh