add condition before load the plugin