rebuild script added