moved router to client