implemented getjobs() to only fetch qstat info once