refactor ssClientStream