simple endpoints and distance calculations