moving to socket stream