-if i disconnect the line that goes to the egr it stops-

The vacuum line??? There should be no vacuum at idle.
If there is unplug the wires to the solenoid (back of UIM to the right of coil pack)if it stops the computer is causing it, if it doesn't the solenoid must be leaking thru.


"Those who cannot remember the past are condemned to repeat it" -George Santayana