add socket stream class