use bufio in parser