remove unneeded callbacks from tcp