more pipe work

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>
minor cleanup

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>