tn5250: rebuild