added the ability to put http headers in the response