replace flareDictionary by a class