added route init to lib