changed to TCP Socket