optimize router

optimize router