pipe: added prev, next, root and end for better internal navigation