update rebuild.sh