add rudimentary support for saving config files