refactored the version setting