add route for flag matching