fix helper implementation
Merge pull request #36 from ajb/add/cache-digests

fix helper implementation