partially working decryption