automatically setup the plugin