automating sys upgrade