move config to json