Chaged where the configfile is defined and how the config is used