batch.rs now working