add more validation for matcher