made the code less redurant again, so we could add easily more hosts.