update proxy and detect