add version and master_node flags to cluster state