thread bugs solved,  queue estimator still not accurate