improved install script