changing some files for pg switch