added Reg(update=) and Reg(reset=)