route logic issues