rudimentary read/write working, index not persisted