change req_headers type to map