Currently the array of backend hosts is specified each time in getBackend() under main.ts. Instead could read in hosts from the config file.