added key index
added key index
made some fixes to how the index gets pushed. error checking
existence checking now works appropriately. the index is only ever updated with the latest values