added checkHosts and installRemotes