support for shell batching