changed way plugins are loaded