build script and dist