some reworkings for the json config