working proxy v2 with class for request and response