better match mechanism, define parsing class