use client.Endpoint() everywhere
Merge pull request #4 from vito/use-client-endpoint

use client.Endpoint() everywhere