inv_stack_batch.pl works