install script, added -h host flag to specify service endpoint hosts