defined order of file type matching