working on the cluster endpoint and endpoint failure class