set stdout and stderr for child processes