reads/writes values with complex nested sub documents