added read_index method to index_reader