added limit to number of lines output fixes #1