skip broken lines where appropriate