configuring connect to proxy