replace hacky versions of getColumnNames() and getRowNames()