working auto-table template/model