modified ttex-batch-gen