 
     # populate nodes:
     @each_cell spreadsheet, (text, primary_index, secondary_index) =>
-      # primary_header = primary_headers[primary_index]
+      primary_header = primary_headers[primary_index]
       secondary_header = secondary_headers[secondary_index]
 
       if primary_index > 1 and secondary_index > 1
-        sphere.triple primary_headers[primary_index], secondary_header or null, text
+        sphere.triple primary_header, secondary_header or null, text
 
     sphere
 

request = require 'axios'
Promise = require 'bluebird'
{ log, p } = require 'lightsaber/lib/log'
{ startsWith } = require 'lodash'

Sphere = require '../core/sphere'


    Promise.resolve new GoogleSpreadsheet args

  constructor: (@options={}) ->
    for key, value of @options
      if key isnt camelCase(key)
        @options[camelCase(key)] = value

    @options.orientation ?= @options.gsheetOrientation ?= 'columns'   # support legacy option name
    @options.id ?= @options.gsheetId ?= @options.sourceGsheet         # support legacy option name
    throw new Error "Either ID or URL required" unless @options.url? or @options.id?
    if @options.url
      @options.id = URL_PATTERN.exec(@options.url)[1]
      throw new Error "Could not parse spreadsheet ID from URL: #{@options.url}" unless @options.id
