updated api of tables

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>