serialize/deserialize functions; removed padding in struct