update scripts to work in new dir struct