cluster code to take in configurations