added check for 'viewable' status of jobs - otherwise api breaks or returns bad data
matrix for dumping to file
child thread now behaves