fix streaming script