adding rebuild script.