trying to follow nokogiri api