use stdout and stderr