place router in its own module, called it from raise