added stream shared_ptr again