making currentDigestHandle global