WIP: merge route.c, not done...