removed stream shared_ptr