debug and formatting changes.
implement TRB and TSB