lgpl license added, xmlpath partially rewritten functional way