change some stdout/stderr usage