added special case for index files