allow router to be configured at the class level