add option.overwrite support in update