refactor ipcluster states