added routing for client