use a config.json to do the setup