added revoke function
added lock/unlock for revoke
added revoke script