init for plugin