update stdout, stderr