some raytracer improvements