implement fileExtensions option