simple API to read a table, fixes #21