modify a feature of json configuration, and cleans code.