fixed order of file type recognition