I had this same problem with my 98 Ford Contour, I had the mass airflow sensor replaced and all the gaskets on the manafold also replaced. The car ran alot better, although my check engine light just came back on with a P1151 code and now I have to change my O2 sensors.