add base API class