added "missing bits" detection