fixed the scripts