updating scripts to use config variables rather than commandline args where possible