move lxml stuff to parser class