allow detection of filetype if multiple filetypes are declared