rework config to json