add adaptResponse hook