move router into module