fillmissing: improvements of training script