adds support for plain text responses