added output/inputstreams.