fix the scripts