update api to match native plugins