added menubased matching to pipeline