updating to use config files