changed some APIs for routers and interfaces