added some missing code
Making a start on index storage