adapting to have transforms return stream

- working by providing custom out stream
- implemented but not tested providing just rename function
fix to make default outStream works when providing outdir without rename