added another stream for h2d_tmp