fixes #826
fix stdout
Merge pull request #827 from matiu/shell/interop

Shell/interop