@xiangli-cmu You don't need the `os.Remove()`. The rename will overwrite the file. Also, you could have the conf file removed and the fail on the rename and be stuck without a conf file.

You also need to check for an error on `os.Rename()` and panic.