WIP: pipe state