refine install script