avoid trying to load plugins multiple times

the global plugin registry needs to be refactored, but this fixes the
immediate problems