properly setting proxy settings