change use of tcp socket