throttle surges in park
hi all so i was doing some repairs on the car and when i finished i went to take the car for a drive to make sure all was well. first of all when i connect the battery my running lights come on and stay on even with the headlight toggle in the off switch so im not sure what that is about but my main problem is when i start the car the rpms are going up and staying up much higher than they ever have before and when i switch from park to reverse or drive they surge up as well. the worst is when i go from drive back to park as they started going up over 3k and i turned the car off before they could go any higher. now im wondering if it is the throttle sensor or if maybe i have a vacuum leak. i took a video of it and will attempt to post it. thanks for any advice guys.