added check for plugin already loaded