small raytrace changes