more proper stdout stream handling