starting to form code for network deserialisation