Sorting out the config loading and use