index persistence rudimentary working