Add main API support in plugin