added plaintext signature support
removed trailing whitespace