ADDED: a simple white list for file extentions