updated scripts to fix regressions