rapidly added server and client tcp code