another take at tcp connection management