added directory to each batch command
simplified dispatch using jglr.dispatch instead of jglr.dispatchNext