first version of working decryption of xtalk