don't send empty lines
limit number of lines printed