add pipeEnd automatickky to flow