change route and module handling in configure.