added comment to resolveEncryption