make $useEncryption actually work