config is a json file