well, i figured it out.
it was a bad connection in the cam position sensor plug. I guess the wires or whatever were just old and worn and not making a good connection. I just happened to touch the wires and everything worked...until i took my hand off of the wires. Now it is ok to LKQ to get a replacement and wire it in.
thanks for the help everyone.