fixes for new xml2js module