add custom matching algorithm
implement custom matching algorithm in preprocessor