debugging qstat problem