change readpartial to readline

change readpartial to readline because readpartial can return before it reads a whole line and that messes up process_line