moved routes to dispatch context