introduce prefix matching