only do digests if it has an extension