[feature] adding endpoint selection feature