blindly setting pipein_fd here doesn't seem safe