add the file_input and mix some bugs