add wrapper input/output streams for sources/sinks