add proxy and agent