adding an allowedExtensions property which specify what to parse