would expect COLUMNS to be declared sooner, anyway the "text_reference = true" case isn't used anywhere so far so do we need it?