updated routing and respond