add line parser for input files