Rough Idle and Blinking Check Engine Light on 2000 Pontiac Montana

I had a blown head gasket and since I got my vehicle back it has been idling rough and just recently my check engine light came on and it blinks when I accelerate.

maybe get your charging system checked or have all the ground wires looked over.