updated router to require modules correctly£