move JobArray to its own file
fix comment about thread flagging