update stream stuff
fixed dead socket issue