waiting for master to start before checking for agents