refactor if conditional into a function
update version.txt
bump version patch