[FIX] support reading from pipes