set version only if things run successfully