update stream api