updates to tcp message handling