checkpoint work on adding chained tools and recrafting flag passing