organize pipe tool dir, use api to generate mesh in build pipes