setup for plugin