merged JobStatus script into CheckandGet script