made high-level changes to sr_router.c