add some support for saving configs