further improvement of install scripts