add rebuild script