make table helper into plugin