parse route correctly