trying to solve stuff with pg.