improve rtree, improve stat online for weighted