adding a whitelist for filetypes