changes to install script, think it works ok