clearsavedstream moved to right place