working: serialisation/deserialisation ok, added granularity