fixed indexing for mimetype/linkage