some settings cleaning and let TYP be configurable