finished off saving and loading for config