optimize router