adding rig_update and fixing hmac