use client.Endpoint() everywhere