handle array jobs