fixed pg set up