add debug code for simtable rec