added marshalling functions for data over the network.