fixed trn handling