updated to try and fix the decryption issue