same for stdout.