some more stuff on line extraction