added table default, changed some debug stuff