almost working install script