add logic to judge sha