setConfig now accepts a json file.