added read of index file