support expansion in matches