updated shell scripts to work with config files