porting new out_stdout from master to v11
porting spec
Merge pull request #175 from sonots/porting_out_stdout

Porting out_stdout (v11)