[major] change update to plugin api