I have a 2005 TJ 4.0 and was driving to work this morning and the check engine light came on and the jeep starting bucking and jerking badly upon acceleration. I limped the managed to turn around and head home to check the code. It is P0335 which from what I gather is a crankshaft position sensor. Does this sound about right to you all? I ordered one from advanced to pick up later, however I am not sure where exactly it is on the motor. I have narrowed it down to 2 but could use your help in locating it exactly. Hopefully this will fix the problem. As a side not I started noticing symptoms about 2 weeks ago after filling up the tank with gas. The next morning when I started it, it would stall and did this about 5 times and then it ran fine. I thought maybe I put some bad gas in it and for the most part after adding some Heet and a new tank of gas things have seemed fine until this morning. Does it sound like the crankshaft position sensor is to blame?