fixing old recalc scripts for 3d files