updated consensus computation to ignore missing flags