 we should only overwrite the file if the content changed