used require on each cluster instead of attempting to modify the function