add method to write configuration back to disk