add rawdata stream + treat error