add plugin_index to plugin