update to use new readtable api