small changes. pg now working again