added CaseDecrypt pattern to toMessages