massive fixes for streaming and connection handling