working with digest in progress prevention