store and load config to/from file