add code support for t4