add t2b/b2t-like functions