better way to switch nokogiri?