pipe works for all branch types