simplified get_next_line, prepare for commands