replace plugin.api with plugin.expose