changed scripts to work