improvede install script