Using metaclass to track plugins