added decryption for download