apply outputConfig in addOutput call of legend plugin