packaging up data to be sent through sockets