tcp client/server

fixed the messaging serialization