update build script and rebuild