added support to optional value attribute to set-add