revocation reason should be int or nil