handle job arrays