adds stdout as option, fixes #2