improved script for initial installs