line reader working