added read/write access to streams