use a module pattern for routes