add proxy pool switch function