generatlize route name

generalize the map between the library and route name