fixed async issue with
created addLine function
split input by lines