improve some install scripts