added tcp server and communication with io and tcp sockets