using new wrapper in training script