fixed some errors and testing to see if sse works in stream.