v0.2 change struct table to struct _table and introduce type table_t