fixed const-ness of matchlist functions