allow reloading the plugin correctly