add version switch