updated deploy script so that it can deploy any version.