finish getEndpoint()