fix data tables, add a debug model, make data tables configurable