avoid panic in newRoute func