fix sync with master and add check cluster membership