flexible router matching