adaptive buffer added for request/response