chore: refactor the cluster server