PROTOTYPE: handler match()