refactored get_config.sh