Grounding questions

Yup, I learned the hard way, and didn't have a good ground when I put my motor back in. It used my shifter cable as part of the ground and it melted... couldn't even shift it. I quickly installed a 1/0 cable from battery in the trunk to the back of the block, and immediately noticed a difference when starting the car.