extracted all_routes into seperate methods