some work on digest functionality;