progress on the index file stuff