initial version of the single directory decryption code