update install script
few bugs left