clean up router
add priority