add proxy support for client_gen