fix unpipe

fixes #29