finish most of pipe, adding pipe flag