changed scripts to use a central config file