add support for optional plugins