adding setRoutes and activate api