trying to get pg to work