added support for plaintext signature