fixing stdouts