handle empty filetypes