fixed major bug

previously only first line was being pulled, now all lines are extracted.