doc: data structure and replication