Has ~80k I think and has recently replaced the fuel filter (today). Also tested fuel pressure coming out of the pump and it's 50+ psi so that should be no problem.
So for p0171:
P0171 - System to Lean (Bank 1) The Adaptive Fuel Strategy continuously monitors fuel delivery hardware. The test fails when the adaptive fuel tables reach a rich calibrated limit. For lean and rich DTCs:
Fuel system
Excessive fuel pressure.
Leaking/contaminated fuel injectors.
Leaking fuel pressure regulator.
Low fuel pressure or running out of fuel.
Vapor recovery system.
Induction system:
Air leaks after the MAF.
Vacuum Leaks.
PCV system.
Improperly seated engine oil dipstick.
EGR system:
Leaking gasket.
Stuck EGR valve.
Leaking diaphragm or EVR.
Base Engine:
Oil overfill.
Cam timing.
Cylinder compression.
Exhaust leaks before or near the HO2Ss.
A SHRTFT-1,2 PID value between -25% to +35% and a LONGFT-1,2 PID value between -35% to +35% is acceptable. Reading beyond these values indicate a failure.
Which means about a hundred different things good be wrong
Maybe the EGR is staying open and causing the car to stumble like that at idle. If anyone has had DPFE failures before I wouldn't mind hearing some of the symptoms
From here I guess I'll try and catch it while it's stumbling and disconnect and plug the EGR feed to see if the idle improves. Thanks for reading my super long post

wink wink.....bitches