working with unbuffered pipe