fixes to TCP ops