encapsulate router