support bulk set in add_attr