use a yaml file for config