update rebuild script