enable cmi with multiple packages (#348)