reorganized the scripts