moved load config to a function in utils.sh