change request datatype to req_t