should clone before doing this, as the plugins object will now be modified...