update scripts and build dir structure