adding digest option