added nokogiri functionality