start fixing tcp.c