implemented qstat