adding pg stuff