adding PG API