harvest from .xsf if there is one
add IDs to <lg> tags