modify class tcpconnection