use file_line to manage mode