update stream.lua