replaced rebuild script
implemented "choose from list" and dialog windows