updated the update and build scripts