add customRoutes support