changed extensions setting to be stored as a list
using any() to filter for valid file extensions