initial stream working