adapted cluster runner to support multiple numbers of nodes