refactoring, added versions.sh DRY