added rebuild script