reading a line from the input channel has been replaced by reading a line with bufio