finished converting scripts to ruby