add response time middleware