edited pg gem to get ready for deployment