adapt to incoming lxml object
fix extracting coords from lxml