add get_lines and terminate methods to Reader