rewrote bar-aint-recursive script