added support for non-json bodies