added support for plain text