add idtable iterator and adjust bus terminal logic