adding functionality to the manager_cluster script