fixes issues with multiple plugin loading