finished api and table/grp usage, need to debug