read index file