rewrote bvh4mb refit code