rewrite part 2 - add frame decoding to TBC