add version switch for upload feature