adding pg support