extract req & res