line-based API fix for #211