use req directly from socket