one function to save guest config