buffering response to support non-string response