Ok i want to thank everybody who offered advice. It was super helpful. I found three problems with the egr system,#1 the coil in the egr valve solenoid was fried. Replaced it,got for $91 with free shipping from partstrain and it is an oem part.second major issue was the bpt.I went to subaru for that one and also the somewhat new egr valve the was replaced before i bought the car,i took it off and it was gummed up with silicone.whoever installed it used silicone on the metal gasket and fillied the port with gunk. Cleaned it out,cleared the codes put a hundered miles on it got it inspected and its been running great. Only thing left to do is fix the fuel fill problem, but i can live with that.thank you guys again this is a great site.