reorganize install script