updated script to have version number passed in