adds disable_plugin function