added support for job arrays