discover the endpoints