switch localexceptions to use an xml file