found a few bugs in spherecast that made it much slower than necessary