fix bugs in client side install script