define extensible matchers based on path and matcher type