upgraded script to latest version of Oz