better handling of index files/directories/content-types