fixed stdout pipe