added load() api call.  added endpoint support