New update to the TCP code

fix up errors from odd sync