refactoring
refactoring
add singleton method rawdigest
spec refactoring