moved router to script