changed from requiring table type to inherit from simplerow to requiring a mapping instance or map of functions.