added a removeAttrOnClone option