add rebuild script
pass all test!!