redirect stdout & stderr