removed repeat code
cleanup modtcp