added bvh debug flag