added realMode attribute to digest.groovy