added istream and ostream wrappers as channels