allocate route in input handler