refine install scripts