add commented code of auto proxy type choosing, not enabled now