add setProxy support