support proxy

I added bits for proxy. please check and include.
Thanks.