adding boolean plaintext flag