removed bad cscompare calls
added PH Filetypes enum and removed cscompare calls
fixed regression tests