fix library issues, fix XMLhelper exceptions